<?php
class StoreUpload extends StoreAppModel {
	var $name = 'StoreUpload';
	var $displayField = 'name';
//	var $actsAs = array(
//        'FileUpload.FileUpload' => array(
//          'uploadDir' => UPLOAD_PATH,
//		  'fileModel' => 'StoreUpload',
//          'forceWebroot' => false, //if false, files will be upload to the exact path of uploadDir
//          'fields' => array('name' => 'file_name', 'type' => 'file_type', 'size' => 'file_size'),
////          'allowedTypes' => array('pdf' => array('application/pdf')),
//          'required' => true, //default is false, if true a validation error would occur if a file wsan't uploaded.
////          'maxFileSize' => '10000', //bytes OR false to turn off maxFileSize (default false)
////          'unique' => false, //filenames will overwrite existing files of the same name. (default true)
////          'fileNameFunction' => 'uniqid_file_name' //execute the Sha1 function on a filename before saving it (default false)
//        )
//    );	
	var $validate = array(
		'name' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'type' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);	

}
?>